package com.rew.canteenbox.functions;

import com.rew.canteenbox.models.Circle;
import com.rew.canteenbox.models.User;

import java.util.ArrayList;
import java.util.List;

/**
 *  Circle init.
 *
 * Created by HuiWen Ren on 2016/11/24.
 */
public class CircleInit {

    private List<Circle> circleList;

    public  CircleInit(){
        circleList = new ArrayList<>();

        UserInit userInit = new UserInit();
        User user = new User();

        Circle circle1 = new Circle();
        circle1.setUser(userInit.findUserById(1025));
        circle1.setText("啦啦啦，这是第一条动态哟~~~");
        circle1.likeNum = 15;
        circleList.add(circle1);

        Circle circle2 = new Circle();
        circle2.setUser(userInit.findUserById(2907));
        circle2.setText("Keep Coding EveryDay!Keep Clam Anyway!");
        circle2.likeNum = 3;
        circleList.add(circle2);

        Circle circle3 = new Circle();
        circle3.setUser(userInit.findUserById(33066));
        circle3.setText("饿了，吃饭，饿了，要吃饭要吃饭要吃饭，可是好晚了，减肥减肥，" +
                "少吃点按计划来，摄入量足够不应该饿的...不该饿...饿了！！！");
        circle3.likeNum = 999;
        circleList.add(circle3);

        Circle circle4 = new Circle();
        circle4.setUser(userInit.findUserById(1025));
        circle4.setText("woooo~动态可以用可以用哟！~这条就来测试一下~啦啦啦，啦啦啦，我是UI的小行家" +
                "希望这个作品可以健康的成长哟~晚安啦~~~~~");
        circle4.likeNum = 0;
        circleList.add(circle4);

    }

    public void setCircleList(List<Circle> circleList) {
        this.circleList = circleList;
    }

    public List<Circle> getCircleList() {
        return circleList;
    }
}
